package test;

import com.bos.crm.domain.Customer;
import com.bos.crm.domain.CustomerService;
import com.bos.crm.domain.CustomerServiceImp;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.io.UnsupportedEncodingException;
import java.util.List;

public class App {

    public static void main(String[] args) throws UnsupportedEncodingException {

        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("cxf.xml");
        Object customerService = applicationContext.getBean("customerService");
        System.out.println(((CustomerService) customerService).findDecidedZoneIDbyAddress("北京市昌平区建材城西路100号"));
        System.out.println(((CustomerService) customerService).findCustomerBytelephone("13788888888"));

    }
}
